<%@ Control Language="C#" %>
<%@ Import Namespace="CommunityServer" %>
<%@ Import Namespace="CommunityServer.Controls" %>
<%@ Import Namespace="CommunityServer.Components" %>
<%@ Import Namespace="CommunityServer.Discussions.Components" %>
<%@ Import Namespace="CommunityServer.Discussions.Controls" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="CSD" Namespace="CommunityServer.Discussions.Controls" Assembly="CommunityServer.Discussions" %>

<body>    
	<div id="header">

		<h1><asp:Label id="PostSubject" Runat="server" /></h1>
		<h3><asp:Label id="ForumName" Runat="server" /></h3>

<CS:PostsSortDropDownList runat="server" id="SortOrder" Visible="False" AutoPostBack="True" />

<asp:Repeater id="PostRepeater" Runat="server">      
	<ItemTemplate>
		<h3><asp:Literal runat="server" id="Subject" /></h3>
		<hr>
		<asp:Literal runat="server" id="Username" />
		<%# Formatter.FormatDatePost (((ForumPost) Container.DataItem).PostDate) %>
		<br>
		<CSD:PostView runat="server" id="PostView"/>
	</ItemTemplate>
</asp:Repeater> 

<table cellpadding="3" cellspacing="0" width="100%">
	<tr>
		<td valign="top">

			<asp:PlaceHolder runat="server" id="PagingArea" >

				<table align="right" class="tableBorder" cellpadding="0" cellspacing="0">
					<tr>
						<td>
							<table width="100%" cellpadding="2" cellspacing="0">
								<tr>
									<td valign="middle" class="column" nowrap="true">
										&nbsp;<CS:CurrentPage Cssclass="columnText" id="CurrentPage" runat="server" />
									</td>
									<td valign="middle" align="right" class="column" nowrap="true">
										<CS:Pager id="Pager" runat="server" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>

			</asp:PlaceHolder>
	
		</td> 
	</tr>
</table>

